package Access;

import Entities.Playlist;
import ExtEntities.VeryExtPlaylist;
import java.util.LinkedList;
import javax.ejb.Remote;

/**
 *
 * @author 647_2
 */
@Remote
public interface PlaylistsRemote {
    public LinkedList<Playlist> getAllPlaylists();
    public LinkedList<Playlist> getAllPlaylists(int start, int count);

    public LinkedList<Playlist> getPlaylistsByUserID(int uID, int start, int count);

    public Playlist getPlaylist(int ID);
    public VeryExtPlaylist getFullPlaylist(int ID);

    public boolean AddPlaylist(String title, int uID);
    public boolean UpdatePlaylist(int ID, String title, int uID);
    public boolean DeletePlaylist(int ID);

    public boolean AddCompositionInPlaylist(int ID, int compID, int position);
    public boolean DeleteCompositionOfPlaylist(int ID);
}
